<ion-view view-title="拜访查看">
  <ion-nav-buttons side="right">
    <button class="button button-clear button-outline" ng-click="doEdit()" ng-if="EDITE_MODEL && showEdit()">
      编辑
    </button>
  </ion-nav-buttons>
  <ion-content class="crm-content">
    <ul class="list">
      <li class="item">
        拜访方式
        <span class="item-note">
          <!--{{dict['visit_way'][visit.visitWay]}}-->
          {{visit.visitWayName}}
        </span>
      </li>
      <li class="item">
        拜访类型
        <span class="item-note">
          <!--{{dict['visit_type'][visit.visitType]}}-->
          {{visit.visitTypeName}}
        </span>
      </li>
      <li class="item">
        联系人
        <span class="item-note">
          {{visit.hotelContacts}}
          <!--{{dict['hotel_contacts'][visit.hotelContacts]}}-->
        </span>
      </li>
      <li class="item">
        拜访日期
        <span class="item-note">
          {{visit.visitTime | date:'yyyy-MM-dd'}}
        </span>
      </li>
    </ul>
    <!--供应链业务-->
    <ul class="list" ng-if="visit.visitType==11">
      <li class="item">
        样品发放
        <span class="item-note">
          {{dict['sample_grant'][visit.sampleGrant]}}
        </span>
      </li>
      <li class="item">
        采购意向
        <span class="item-note">
          {{dict['purchase_intention'][visit.purchaseIntention]}}
        </span>
      </li>
      <li class="item">
        采购商品情况说明
        <!--<p>-->
          <!--{{visit.reason}}-->
        <!--</p>-->
        <p>
          <i ng-repeat="(key,value) in dict['failure_reason']">
            {{value+'采购情况：'+visit.reason[key]}}
          </i>
        </p>
      </li>
    </ul>
    <!--分销业务-->
    <ul class="list" ng-if="visit.visitType==3">
      <li class="item">
        是否签约
        <span class="item-note">
          {{dict['T_F'][visit.isSign]}}
        </span>
      </li>
    </ul>
    <ul class="list">
      <li class="item">
        拜访情况
        <p>
          {{visit.visitDesc}} &nbsp;
        </p>
      </li>
    </ul>

    <div class="padding"  ng-if="EDITE_MODEL && showEdit()">
      <button class="button button-assertive button-block" ng-click="doDelete(visit.id)">
        删除
      </button>
    </div>

  </ion-content>
</ion-view>
<style>
  .item p {
    white-space: initial;
    color: #aaa;
    font-size: 14px;
  }
  .item p i:first-child{
    margin-top:5px;
  }
  .item p i{
    line-height: 20px;
    display: block;
  }
</style>
